<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:s="http://jboss.com/products/seam/taglib">

   <s:div rendered="#{isArticle}">
      <ui:include src="article-display.xhtml">
         <ui:param name="article" value="#{content}"/>
      </ui:include>
   </s:div>

   <h:panelGrid columns="2" styleClass="dialog file" rendered="#{not isArticle}">
      <h:outputText value="Ime datoteke:"/>
      <h:outputText value="#{content.title}"/>
      <h:outputText value="Velikost:"/>
      <h:outputText value="#{content.fileSize}"/>
      <h:outputText value="Content-type:"/>
      <h:outputText value="#{content.contentType}"/>
   </h:panelGrid>

</ui:composition>